package server;

public class Utils {
	public static String replace(String str) {
	    str = str.replaceAll("[\\W]+", "-");
	    str = str.replaceAll("^-","");
	    str = str.replaceAll("-$","");
	    str = str.toLowerCase();
	    return str;
    }
	public static String description(String str)
	{
		str = str.replaceAll("<p>", "").replaceAll("</p>", "");
		str = str.substring(0,150);
		return str;
	}
}
